@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/task/update.js"]}){
<form id="taskForm" lay-filter="taskForm" class="layui-form model-form">

    <input name="id" value="${obj.id!}" type="hidden"/>


    <div class="layui-form-item">
       <label class="layui-form-label">cron表达式<span style="color: red;">*</span></label>
       <div class="layui-input-block">
           <input id="cronExpression" value='${obj.cronExpression}' name="cronExpression" placeholder="请输入cron表达式" type="text" class="layui-input" lay-verify="required" required/>
       </div>
    </div>

    <div class="layui-form-item">
       <label class="layui-form-label">执行类<span style="color: red;">*</span></label>
       <div class="layui-input-block">
           <input value='${obj.classBean}' name="classBean" placeholder="请输入任务执行时调用哪个类的方法 包名+类名" type="text" class="layui-input" lay-verify="required" required/>
       </div>
    </div>

    <div class="layui-form-item">
       <label class="layui-form-label">任务分组<span style="color: red;">*</span></label>
       <div class="layui-input-block">
           <input value='${obj.jobGroup}' name="jobGroup" placeholder="请输入任务分组" type="text" class="layui-input" lay-verify="required" required/>
       </div>
    </div>

    <div class="layui-form-item">
       <label class="layui-form-label">任务名<span style="color: red;">*</span></label>
       <div class="layui-input-block">
           <input value='${obj.jobName}' name="jobName" placeholder="请输入任务名" type="text" class="layui-input" lay-verify="required" required/>
       </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">任务状态<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input type="radio" name="state" value="1" title="启用" ${obj.state! == 1 ? 'checked' : ''}>
            <input type="radio" name="state" value="0" title="禁用" ${obj.state! == 0 ? 'checked' : ''}>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">任务描述</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" name="descript">${obj.descript!}</textarea>
        </div>
    </div>


    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>

</form>
@}